<%@ page import="org.bjou.Permission" %>
<!doctype html>
<html>
	<head>
		<meta name="layout" content="pertho"/>
		<title>CIMS</title>
		
	</head>
	<body>
         <div class="container">
			
            
           <div class="row">
      <div class="twelve columns">
        <div class="box_c">
          <div class="box_c_heading cf">
            <p>权限管理</p>
          </div>
          <div class="box_c_content">
              <!-- start -->
		<div id="create-shiroUser" class="content scaffold-create" role="main">
			<g:if test="${flash.message}">
			<div class="message" role="status">${flash.message}</div>
			</g:if>
			
			<g:form action="update" >
				<fieldset class="form">
					
<div class="fieldcontain ">
	<label for="roles">
		${shiroRoleInstance?.name}
		
	</label>
 
   <g:select optionKey="permissionAction" optionValue="permissionName"  multiple="multiple" size="20"
                         from="${org.bjou.Permission.list()}"
                         name='permissions' value="${shiroRoleInstance?.permissions}" class="many-to-many"/> 
             
 
  
    
  
</div><g:hiddenField name="id" value="${shiroRoleInstance?.id}" />
				</fieldset>
				<fieldset class="buttons">
					<g:submitButton name="rightMgn" class="gh_button" value="保存" />
				 <g:link class="gh_button list" action="list">返回角色列表</g:link>
                                </fieldset>
                        </g:form>
		  <!-- end -->
            </div>
          </div>
        </div>
      </div>
    </div>
            
            
	</div>
		
		
	</body>
</html>